package com.example.tian.securityinspection.util;

import com.squareup.otto.Bus;

/**
 * 事件通讯 工具
 */
public class EventUtil {

    private static Bus bus = new Bus();

    public static void register(Object context){
        bus.register(context);
    }

    public static void unregister(Object context){
        bus.unregister(context);
    }

    public static void sendEvent(Object object){
        bus.post(object);
    }

}
